import { Column, Entity, PrimaryColumn } from 'typeorm';

@Entity({ name: 'record_list' })
export class RecordListEntity{
    @PrimaryColumn('varchar', { name: 'id', charset: 'utf8mb4', collation: 'utf8mb4_general_ci' })
    id: string;

    @Column({ name: 'user_id', charset: 'utf8mb4', collation: 'utf8mb4_general_ci' })
    userId: string;

    @Column({ name: 'date', charset: 'utf8mb4', collation: 'utf8mb4_general_ci' })
    date: string;

    @Column('bigint', { name: 'in_token' })
    inToken: number;

    @Column('bigint', { name: 'out_token' })
    outToken: number;

    @Column('bigint', { name: 'total_token' })
    totalToken: number;

    @Column({ name: 'model', charset: 'utf8mb4', collation: 'utf8mb4_general_ci' })
    model: string;

    @Column({ name: 'in_price', type: 'decimal', precision: 16, scale: 6 })
    inPrice: string;

    @Column({ name: 'out_price', type: 'decimal', precision: 16, scale: 6 })
    outPrice: string;

}
